//   首页 > 商品分类 > 机械标准零件  
<template>
  <div>
    <router-link to="/" tag="span" style="cursor: pointer;">{{ navRecord.yi }}</router-link> 
    <span style="cursor: default;">  >  {{ navRecord.er }}</span> 
    <span style="cursor: default;" v-if="san"> > {{ san }}</span>>
    <span>{{this.$store.state.godetailname2}}</span> 
    
  </div>
</template>
<script>
export default {
  name: "NavigationRecord",

  data() {
    return {
      navRecord: {
        yi: "首页",
        er: "商品分类",
      }
    }
  },
  computed: {
    san() {
      console.log(this.$store.state.godetailname)
      console.log(this.$store.state.godetailname2)
      return this.$store.state.godetailname
    }
  }

}
</script>
<style lang="scss" scoped>
div {
  margin: 34px 10px 0px 10px;
  padding-left: 10px;
  border-left: 3px solid #a2a2a2;
  font-size: 14px;
  line-height: 14px;
  color: #3a3a3a;
}
</style>
